package com.nut.spp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nut.spp.entity.SysParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface SysParamMapper extends BaseMapper<SysParam> {

    IPage<SysParam> listPage(Page page, @Param("name") String name);

    @Select("select * from biz_param where param_key=#{paramKey} limit 1")
    SysParam selectByParamKey(String paramKey);

}
